<if condition="$data['readonly']">
	<input class="hidden layui-input" type="text" name="udf_field_{$id}" id="udf_field_{$id}" value="{$data.val}" >
	<div class="input">
		{$data.val}
	</div>
	<else/>
	<php>
		$str_validate='';
		if(!empty($data['validate'])){
		$str_validate='check="'.$data['validate'].'" info="{'.$data['msg'].'"';
		}
	</php>
	<input class="input" type="text" name="udf_field_{$data.id}" id="udf_field_{$data.id}" value="{$data.val}" {$str_validate}>
</if>